package com.w7vm.menuweb.dao;

import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.ejb.Stateless;
import javax.persistence.Column;
import javax.persistence.EntityManager;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NoResultException;
import javax.persistence.PersistenceContext;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import com.w7vm.menuweb.entity.CardapioBuffetWeb;
import com.w7vm.menuweb.entity.ContratoCreditoPagamentoWeb;
import com.w7vm.menuweb.entity.ContratoPagamentoWeb;
import com.w7vm.menuweb.entity.ContratoWeb;
import com.w7vm.menuweb.utility.ConstantesEJB;
import com.w7vm.menuweb.vo.FormaPagamentoVO;


@Stateless
public class ContratoCreditoPagamentoDAO extends GenericDAO<ContratoCreditoPagamentoWeb> {
	
	ConstantesEJB constEJB = new ConstantesEJB();
	
	@PersistenceContext
	private EntityManager em;
	
	public ContratoCreditoPagamentoDAO() {
		super(ContratoCreditoPagamentoWeb.class);
		// TODO Auto-generated constructor stub
	}
	
//	
//	public ContratoCreditoPagamentoWeb findCreditoByContrato(int id){
//		System.out.println("[EJB-CONTRATO][findCreditoByContrato] :"+ id);
//		Map<String, Object> parameters = new HashMap<String, Object>();
//		parameters.put("idContrato", id);   
//		return super.findByCriterion(ContratoCreditoPagamentoWeb.FIND_CREDITO_BY_IDCONTRATO, parameters);
//	}

}
